package com.sky.context;

/**
 * @Author：XueShiHao
 * @Date：2025/6/2 星期一 17:49:37
 * @Email:747278007@qq.com
 * @Description:
 **/
public class BaseContext {
    public static ThreadLocal<Long> threadLocal = new ThreadLocal<>();

    public static void setCurrentId(Long id) {
        threadLocal.set(id);
    }

    public static long getCurrentId() {
         return threadLocal.get();
    }

    public static void removeCurrentId(){


            threadLocal.remove();
}
}
